package com.suxin.service.loader;

/**
 * @author Tang
 * @classname ContentType
 * @description [  ]
 * @date 2023/1/9 11:29
 */
public enum ContentType {

    /**
     * JSON
     */
    JSON(TypeConstants.JSON_PARSER),

    XML(TypeConstants.XML_PARSER);

    private String type;

    ContentType(String type) {
        this.type = type;
    }

    public interface TypeConstants {
        String JSON_PARSER = "jsonParser";
        String XML_PARSER = "xmlParser";
    }

    @Override
    public String toString() {
        return this.type;
    }
}
